package service;


import java.util.List;

import entity.Borrow;


public interface IBorrowService {

	int borrowBook(Borrow borrow);
	
	int AgainBorrowBook(Borrow borrow);
	
	int returnBook(Borrow borrow);
	
	Borrow findByBorrow(String id,String bookid);
	
	List<Borrow> findAllBorrow();
	
	List<Borrow> findAllPersonBorrow(String id);
	
	Borrow findByBookname(String bookname);
	
	Borrow findByOneBookid(String bookid);
	
	List<Borrow> findByBookid(String bookid);
	
	List<Borrow> findById(String id);
	
	Borrow findPersonBorrowByBookname(String bookname);
	
}